<extend name="Public/usercenter1"/>

<block name="body">
    <div class="uc_config_view common_block_border clearfix col-xs-12 mt_0" style="padding-top:20px;padding-bottom: 20px;">
        <!--<if condition="$flash.can_play eq 1">
            <div id="view_show">
                <embed src="{$flash.flashinfo.flash_url}" allowFullScreen="true" autostart="false" quality="high" width="100%"
                       height="470px" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="Opaque"
                       title="{$flash.flashinfo.title}"></embed>
                <button type="button" id="edit_view" class="btn btn-primary pull-right button_change"
                        style="background-color: #f36119;border-color: #f36119;color: #fff!important;margin-top: 10px">
                    添加个人视频
                </button>
                <script>
                    $(function () {
                        $('#edit_view').click(function () {
                            $('#view_show').hide();
                            $('#edit_view_form').show();
                        });
                        $('#view_show_true').click(function () {
                            $('#edit_view_form').hide();
                            $('#view_show').show();
                        });
                    });
                </script>
            </div>
        </if>
        <if condition="$flash.can_play eq 1">style="display:none"</if>-->
        <form id="edit_view_form" class="form-horizontal clearfix ajax-form " action="{:U('usercenter/config/editview')}" method="post" >
        <div style="border: 1px solid #a7a7a7;border-radius: 5px;height: 480px;padding:0 70px;margin-bottom: 20px;">
            <div style="margin-top: 180px;line-height: 30px;">请输入视频播放页面链接地址 如
                http://v.youku.com/v_show/id_XNzgwNzM5NDky.html
            </div>
            <div><input type="text" name="flash_url" style="width: 100%;line-height: 30px;word-break: break-all;" ></div>
            <div class="info" style="color: #f28220">目前支持优酷网、土豆网、酷6网、搜狐等视频发布</div>
            <div class="info" style="color: #959595">最多可添加五支视频</div>
        </div>
        <div class="col-xs-12 submit" style="text-align: center">
            <button type="submit" id="can_add" name="submit" class="btn btn-default button_change">确定添加</button>
            <!--<if condition="$flash.can_play eq 1">
                <button type="button" id="view_show_true" class="btn btn-default button_change">取消</button>
            </if>-->
        </div>
        </form>
        <div class="col-xs-12 uc_right_bottom pad_0">
            <include file="Config/_views"/>
        </div>
    </div>
</block>